﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace ProjectM2Work
{
    public abstract class GamePageComponent
    {
        #region  Propertires
        protected bool _visible;      // True thi ve
        protected bool _enabled;      // True thi update

        public bool Enabled
        {
            get { return _enabled; }
            set { _enabled = value; }
        }

        public bool Visible
        {
            get { return _visible; }
            set { _visible = value; }
        }
        #endregion

        #region Initilation
        public GamePageComponent()
        {
        }
        #endregion

        #region Draw & Update
        public virtual void OnDraw(SpriteBatch spritebatch, GameTimerEventArgs gametime)
        {

        }

        public virtual void OnUpdate(GameTimerEventArgs gametime)
        {

        }
        #endregion
    }
}
